﻿using FlowCanvas.Nodes;
using LogSystem;
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using Yoozoo.Gameplay.Liberty;
using Yoozoo.Gameplay.Liberty.AI;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    [Category("Ggame")]
    public class SetPlayerPropertyCfg : CallableActionNode<int>
    {
        public override void Invoke(int npcId)
        {
            LibertyConfigManager.PLAYER_PROPERTY_NPCID = npcId;
            LibertyAIUtils.PlayerController.RebornPlayer();
        }
    }
}